package org.jeecg.modules.wlhy.tlaccount.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_tl_account_sys_record
 * @Author: jeecg-boot
 * @Date:   2022-10-21
 * @Version: V1.0
 */
@Data
@TableName("hy_tl_account_sys_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_tl_account_sys_record对象", description="hy_tl_account_sys_record")
public class HyTlAccountSysRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**操作类型（1充值 2支付运费3收入4提现） */
	@Excel(name = "操作类型", width = 15)
    @ApiModelProperty(value = "操作类型（1充值 2支付运费3收入4提现） ")
    @Dict(dicCode = "opt_type")
    private String optType;
    @ApiModelProperty(value = "1系统用户 2 货主 3 货主子账号  4 司机 5车队长")
    private String utype;
	/**1收入 2支出*/
    @ApiModelProperty(value = "1收入 2支出")
    private String rt;
	/**钱包id*/
    @ApiModelProperty(value = "钱包id")
    private String walletId;
    private String recordId;
	/**用户id*/
    @ApiModelProperty(value = "用户id")
    private String bizUserId;
	/**用户id*/
    @ApiModelProperty(value = "用户id")
    private String uid;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amt;
	/**结余*/
	@Excel(name = "结余", width = 15)
    @ApiModelProperty(value = "结余")
    private BigDecimal lastAmt;


	/**状态 0待充值 1-成功 2-失败 3-支付确认中*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态 0待充值 1-成功 2-失败 3-支付确认中")
    @Dict(dicCode = "tl_pay_status")
    private String st;
	/**渠道交易流水号*/
	@Excel(name = "渠道交易流水号", width = 15)
    @ApiModelProperty(value = "渠道交易流水号")
    private String payInterfaceOutTradeNo;
	/**订单支付完成时间*/
	@Excel(name = "订单支付完成时间", width = 15)
    @ApiModelProperty(value = "订单支付完成时间")
    private String payDatetime;
	/**acctName*/
	@Excel(name = "acctName", width = 15)
    @ApiModelProperty(value = "acctName")
    private String acctName;
	/**收款帐号*/
	@Excel(name = "收款帐号", width = 15)
    @ApiModelProperty(value = "收款帐号")
    private String acct;
	/**服务费*/
	@Excel(name = "服务费", width = 15)
    @ApiModelProperty(value = "服务费")
    private BigDecimal costService;
	/**服务费结余*/
	@Excel(name = "服务费结余", width = 15)
    @ApiModelProperty(value = "服务费结余")
    private BigDecimal lastCostService;
	/**实付运费*/
	@Excel(name = "实付运费", width = 15)
    @ApiModelProperty(value = "实付运费")
    private BigDecimal costPayShipping;

    @Excel(name = "公司", width = 15, dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @Dict(dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "公司")
    private String companyId;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**云商通订单号*/
    @Excel(name = "云商通订单号", width = 15)
    @ApiModelProperty(value = "云商通订单号")
    private String orderNo;
    /**商户订单号*/
    @Excel(name = "商户订单号", width = 15)
    @ApiModelProperty(value = "商户订单号")
    private String merOrderNo;
    /**平台订单号*/
    @Excel(name = "平台订单号", width = 15)
    @ApiModelProperty(value = "平台订单号")
    private String bizOrderNo;
}
